#ifndef LOGINWINDOW_H
#define LOGINWINDOW_H

#include <QWidget>

class QLineEdit;
class QPushButton;
class QComboBox;

class LoginWindow : public QWidget
{
    Q_OBJECT
public:
    explicit LoginWindow(QWidget *parent = nullptr);

signals:
    // 登录成功信号，传递用户名、用户ID、用户类型
    void loginSuccess(const QString& username, int userId, int userType);

private slots:
    void onLoginClicked();
    void onInitAdmin();

private:
    QLineEdit* editUser;
    QLineEdit* editPass;
    QComboBox* comboType;
    QPushButton* btnLogin;
    QPushButton* btnInitAdmin;
};

#endif // LOGINWINDOW_H